home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / doc / python-nevow / nevow-glossary.txt < prev    next >
Encoding:
Text File  |  2009-03-23  |  2.2 KB  |  48 lines

  1. Nevow Glossary
  2. ==============
  3.  
  4. Object Traversal
  5.   The process by which a Python object is located to render HTML for a given
  6.   HTTP URL. For example, given the URL http://example.com/foo/bar, Object
  7.   Traversal will begin at the "Root Resource" object by asking it for an object
  8.   which is capable of rendering the page at ('foo', 'bar'). The "Root Resource"
  9.   returns an object and a list of unhandled path segments, and the traversal
  10.   continues across this new Resource object until all path segments have been
  11.   consumed.
  12.  
  13. Page Rendering
  14.   The process by which a Python object, usually a rend.Page subclass, turns
  15.   itself into HTML. Page Rendering involves locating some page data, loading a
  16.   template document, and applying the template to the data, in the process
  17.   generating HTML.
  18.  
  19. Deployment Environment
  20.   The environment in which a Nevow application is deployed. Generally involves
  21.   an HTTP server which is configured to route certain (or all) HTTP requests
  22.   through the Nevow Object Traversal and Page Rendering process. Deployment
  23.   environments include CGI, WSGI, and twisted.web.
  24.  
  25. DOM
  26.   Document Object Model. A tree of objects which represent the structure of an
  27.   XHTML document in memory. Nevow uses a nonstandard DOM named "stan", which is
  28.   made up of simple Python lists, dicts, strings, and nevow.stan.Tag instances.
  29.  
  30. Flattener
  31.   A Python function which knows how to translate from a rich type to a string
  32.   containing HTML. For example, the integer flattener calls str() on the
  33.   integer. The string flattener escapes characters which are unsafe in HTML,
  34.   such as <, >, and &.
  35.  
  36. Tag
  37.   A class, defined at nevow.stan.Tag, which holds information about a single
  38.   HTML tag in a DOM. Tag instances have three attributes: tagName, attributes,
  39.   and children. tagName is a string indicating the tag name. attributes is a
  40.   dict indicating the HTML attributes of that node. children is a list
  41.   indicating the child nodes of that node.
  42.  
  43. Tag Specials
  44.   A Tag attribute which is "special" to nevow. Tag specials include data,
  45.   render, pattern, slot, and macro. Tag Specials will never be output as HTML
  46.   attributes of tags, but will be used by the internal Nevow rendering process
  47.   to influence how the Tag is rendered.
  48.